package org.springblade.modules.repair.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zcc
 * @version 1.0
 * @date 2021/7/28 14:59
 */
@Getter
@AllArgsConstructor
public enum SignTypeEnum {

	/**
	 * 0 缺卡,1:正常，2：迟到
	 */
	SIGN_DEFICIENCY(0, "缺卡"),
	SIGN_VALID(1, "正常"),
	SIGN_BELATE(2, "迟到"),
	SIGN_LEAVEEARLY(3, "早退"),
	SIGN_LOCATEABNORMAL(4, "定位异常"),
	SIGN_NEWSIGN(5, "补卡"),
	SIGN_NOSIGN(6, "缺卡"),
	SIGN_OVERTIME(7, "加班");
	final int id;
	final String name;

	public static List<String> dateUserSignTypeList(){
		List<String>  list = new ArrayList<>(10);
		list.add(SignTypeEnum.SIGN_BELATE.getName());
		list.add(SignTypeEnum.SIGN_LEAVEEARLY.getName());
		list.add(SignTypeEnum.SIGN_LOCATEABNORMAL.getName());
		list.add(SignTypeEnum.SIGN_NEWSIGN.getName());
		list.add(SignTypeEnum.SIGN_NOSIGN.getName());
		list.add(SignTypeEnum.SIGN_OVERTIME.getName());
		return list;
	}
}
